package com.jmp.base;

import com.jmp.base.dto.*;
import one.stand.model.ResultModel;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface WebsiteApi {
    /**
     * 官网信息
     */
    @PostMapping("/website/info")
    ResultModel<WebsiteInfoVo> info(@RequestBody WebsiteInfoDto request);

    /**
     * 官网信息：保存
     */
    @PostMapping("/website/save")
    ResultModel save(@RequestBody WebsiteSaveDto request);

    /**
     * 视频
     */
    @PostMapping("/website/video")
    ResultModel<WebsiteVideoVo> video(@RequestBody WebsiteVideoDto request);

    /**
     * 视频：保存
     */
    @PostMapping("/website/video/save")
    ResultModel videoSave(@RequestBody WebsiteVideoSaveDto request);

    /**
     * 视频：删除
     */
    @PostMapping("/website/video/remove")
    ResultModel videoRemove(@RequestBody WebsiteVideoRemoveDto request);

    /**
     * 视频：上下移动
     */
    @PostMapping("/website/video/move")
    ResultModel videoMove(@RequestBody WebsiteVideoMoveDto request);

    /**
     * 用户需求
     */
    @PostMapping("/website/demand")
    ResultModel<WebsiteDemandVo> demand(@RequestBody WebsiteDemandDto request);

    /**
     * 用户需求-保存
     */
    @PostMapping("/website/demand/save")
    ResultModel demandSave(@RequestBody WebsiteDemandSaveDto request);
}
